<%@ Page Title="SignIn @tbd.co.in" Language="C#" MasterPageFile="~/TBDHome.Master" Theme="HomeTheme" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="OPMS_V1.AccessControls.Login" %>
<%@ Register Src="~/UserControls/Login.ascx" TagPrefix="login" TagName="login1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lblAccounts" runat="server" Font-Bold="True" Font-Size="Medium" 
        style="z-index: 3; left: 35px; top: 221px; position: absolute" 
        Text="My TBD"></asp:Label>
        <asp:Label ID="lblWelcome" runat="server" Font-Bold="True" 
        style="z-index: 3; left: 342px; top: 4px; position: absolute" 
        ForeColor="White"></asp:Label>
    <asp:Panel ID="pnlLogin" runat="server" 
        
        
        style="z-index: 1; left: 33px; top: 274px; position: absolute; height: 241px; width: 289px" 
        BackColor="#E4E4E4" BorderColor="#CECECE">
        <asp:Label ID="lblSigninMessage" runat="server" 
    style="z-index: 1; left: 8px; top: 11px; position: absolute" Text="TBD Members" 
            Font-Bold="True" Font-Names="Times New Roman"></asp:Label>
        <asp:Label ID="lblAccountName" runat="server" Font-Bold="True" Font-Size="10.5pt" 
            style="z-index: 1; left: 10px; top: 63px; position: absolute" 
            Text="Account Login: "></asp:Label>
        <asp:TextBox ID="txtAccountName" runat="server" Font-Bold="True" 
            Font-Size="10pt" 
            
            style="z-index: 1; left: 10px; top: 84px; position: absolute; width: 194px" 
            TabIndex="1"></asp:TextBox>
        <asp:Label ID="lblPasswordMessage" runat="server" Font-Bold="True" 
            Font-Size="10.5pt" style="z-index: 1; left: 10px; top: 125px; position: absolute" 
            Text="Password: "></asp:Label>
        <asp:TextBox ID="txtPassword" runat="server" Font-Bold="True" Font-Size="10pt" 
            
            
            style="z-index: 1; left: 10px; top: 147px; position: absolute; width: 192px;" 
            TabIndex="2" TextMode="Password"></asp:TextBox>
        <asp:LinkButton ID="lnkForgot" runat="server" Font-Size="10pt" 
            ForeColor="Black" 
            style="z-index: 1; left: 10px; top: 171px; position: absolute" 
            TabIndex="3" onclick="lnkForgot_Click">Forgot Account Name/ Password?</asp:LinkButton>
        <asp:Button ID="btnLogin" runat="server" Font-Bold="True" 
            style="z-index: 2; left: 10px; top: 201px; position: absolute; width: 58px; height: 28px;" 
            Text="Login" TabIndex="4" onclick="btnLogin_Click" 
            ForeColor="White" CssClass="buttonStyling" />
       
        <asp:RegularExpressionValidator ID="regexLoginName" runat="server" 
            ErrorMessage="Only letters(a-zA-Z), numbers(0-9),(_.$) are allowed." 
            Font-Size="10pt" style="z-index: 1; left: 10px; top: 110px; position: absolute" 
            ValidationExpression="^[a-zA-Z0-9_@/.]*$" 
            ControlToValidate="txtAccountName"></asp:RegularExpressionValidator>
       
        <cc1:ValidatorCalloutExtender ID="regexLoginName_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexLoginName">
        </cc1:ValidatorCalloutExtender>
       
        <asp:Label ID="lblLoginError" runat="server" Font-Bold="True" Font-Size="10pt" 
            ForeColor="Red" style="z-index: 1; left: 10px; top: 30px; position: absolute" 
            Text="Your login attempt was not successful. Please try again."></asp:Label>
       
    </asp:Panel>
    <asp:Label ID="lblOR" runat="server" Font-Bold="True" Font-Size="14pt" 
        ForeColor="IndianRed" 
        style="z-index: 1; left: 330px; top: 392px; position: absolute" Text="OR"></asp:Label>
    <asp:Panel ID="pnlRegister" runat="server" 
        
        style="z-index: 1; left: 380px; top: 277px; position: absolute; height: 459px; width: 303px" 
        BackColor="#CECECE" BorderColor="Black">
        <asp:Label ID="lblRegister" runat="server" 
    style="z-index: 1; left: 10px; top: 6px; position: absolute" Text="Register Now" 
            Font-Bold="True"></asp:Label>
        <asp:Label ID="lblRegisterMessage" runat="server" 
            style="z-index: 1; left: 10px; top: 27px; position: absolute; width: 253px" 
            Text="Create your TBD account login and password" Font-Size="10pt"></asp:Label>
        <asp:Label ID="lblRegConfirmPassword" runat="server" Font-Bold="True" 
            Font-Size="10.5pt" style="z-index: 1; left: 11px; top: 260px; position: absolute" 
            Text="Confirm Password: *"></asp:Label>
        <asp:Label ID="lblRegPassword" runat="server" Font-Bold="True" Font-Size="10.5pt" 
            style="z-index: 1; left: 11px; top: 195px; position: absolute" 
            Text="Password: *"></asp:Label>
        <asp:Label ID="lblRegEmail" runat="server" Font-Bold="True" Font-Size="10.5pt" 
            style="z-index: 1; left: 11px; top: 133px; position: absolute" 
            Text="Email: *"></asp:Label>
        <asp:TextBox ID="txtRegAccountName" runat="server" Font-Bold="True" 
            Font-Size="10pt" 
            
            style="z-index: 1; left: 10px; top: 90px; position: absolute; width: 194px" 
            TabIndex="5"></asp:TextBox>
            
        <asp:Label ID="lblRegAccountName" runat="server" Font-Bold="True" Font-Size="10.5pt" 
            style="z-index: 1; left: 10px; top: 68px; position: absolute" 
            Text="Account Login: *"></asp:Label>
        <asp:TextBox ID="txtRegPassword" runat="server" Font-Bold="True" Font-Size="10pt" 
            style="z-index: 2; left: 10px; top: 217px; position: absolute; width: 192px;" 
            TabIndex="7" TextMode="Password"></asp:TextBox>
            
        <asp:TextBox ID="txtRegConfPassword" runat="server" Font-Bold="True" Font-Size="10pt" 
            style="z-index: 2; left: 10px; top: 280px; position: absolute; width: 192px;" 
            TabIndex="8" TextMode="Password"></asp:TextBox>
            
        <asp:TextBox ID="txtRegEmail" runat="server" Font-Bold="True" Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 154px; position: absolute; width: 194px" 
            TabIndex="6"></asp:TextBox>
            
        <asp:CheckBox ID="chkTerms" runat="server" Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 334px; position: absolute; width: 241px" 
            Text="I have read and accepted the Privacy Policy and Conditions of Use." 
            TabIndex="9" />
            
        <asp:Button ID="btnRegister" runat="server" 
            style="z-index: 2; left: 10px; top: 410px; position: absolute; right: 211px;" 
            Text="Register" Font-Bold="True" onclick="btnRegister_Click" 
            TabIndex="10" CssClass="buttonStyling"/>
        <asp:CompareValidator ID="regecPasswordCompare" runat="server" 
            ControlToCompare="txtRegPassword" ControlToValidate="txtRegConfPassword" 
            ErrorMessage="Password do not match" Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 303px; position: absolute" 
            Font-Bold="True"></asp:CompareValidator>
        <asp:Label ID="lblRequired" runat="server" Font-Bold="True" Font-Size="10pt" 
            ForeColor="Red" style="z-index: 1; left: 10px; top: 50px; position: absolute" 
            Text="Please enter all the required details."></asp:Label>
        <asp:Label ID="lblEmailExists" runat="server" Font-Size="10pt" ForeColor="Red" 
            style="z-index: 1; left: 10px; top: 180px; position: absolute" 
            Text="Email Address Exists" Font-Bold="True"></asp:Label>
        <cc1:ValidatorCalloutExtender ID="regecPasswordCompare_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regecPasswordCompare">
        </cc1:ValidatorCalloutExtender>
        <asp:RegularExpressionValidator ID="regexEmail" runat="server" 
            ErrorMessage="Enter Valid Email" Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 177px; position: absolute" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ControlToValidate="txtRegEmail"></asp:RegularExpressionValidator>
        <cc1:ValidatorCalloutExtender ID="regexEmail_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexEmail">
        </cc1:ValidatorCalloutExtender>
        <asp:RegularExpressionValidator ID="regexAccountName" runat="server" 
            ControlToValidate="txtRegAccountName" 
            ErrorMessage="Only letters(a-zA-Z), numbers(0-9),(_.$) are allowed." 
            Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 114px; position: absolute; width: 298px;" 
            ValidationExpression="^[a-zA-Z0-9_@/.]*$"></asp:RegularExpressionValidator>
        <asp:RequiredFieldValidator ID="regexReqEmail" runat="server" 
            ControlToValidate="txtRegEmail" ErrorMessage="Enter Email Address" 
            Font-Size="10pt" style="z-index: 1; left: 10px; top: 180px; position: absolute"></asp:RequiredFieldValidator>
        <cc1:ValidatorCalloutExtender ID="regexReqEmail_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexReqEmail">
        </cc1:ValidatorCalloutExtender>
        <asp:RequiredFieldValidator ID="regexReqPassword" runat="server" 
            ControlToValidate="txtRegPassword" ErrorMessage="Enter Password" 
            Font-Size="10pt" 
            style="z-index: 1; left: 10px; top: 240px; position: absolute" Font-Bold="True"></asp:RequiredFieldValidator>
        <cc1:ValidatorCalloutExtender ID="regexReqPassword_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexReqPassword">
        </cc1:ValidatorCalloutExtender>
        <cc1:ValidatorCalloutExtender ID="regexAccountName_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexAccountName">
        </cc1:ValidatorCalloutExtender>
        <asp:RequiredFieldValidator ID="regexReqUsername" runat="server" 
            ControlToValidate="txtRegAccountName" ErrorMessage="Enter UserName" 
            Font-Size="10pt" style="z-index: 1; left: 10px; top: 110px; position: absolute"></asp:RequiredFieldValidator>
        <cc1:ValidatorCalloutExtender ID="regexReqUsername_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="regexReqUsername">
        </cc1:ValidatorCalloutExtender>
        <asp:Label ID="lblUsernameError" runat="server" Font-Size="10pt" 
            ForeColor="#FF3300" 
            style="z-index: 1; left: 10px; top: 116px; position: absolute" 
            Text="Username Exists" Font-Bold="True"></asp:Label>
        <asp:Label ID="lblRegisterError" runat="server" Font-Size="10pt" 
            ForeColor="#FF3300" 
            style="z-index: 1; left: 10px; top: 380px; position: absolute" 
            Text="Unable to register. Please try after some time."></asp:Label>
    </asp:Panel>
    <login:login1 ID="LoginPanel" runat="server" />
    </asp:Content>
